package com.hurried1y.exception;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * User：Hurried1y
 * Date：2023/4/7
 */
@AllArgsConstructor
@NoArgsConstructor
public class SystemException extends RuntimeException {
    private int code;
    private String msg;

    public SystemException(String msg) {
        this.msg = msg;
    }
    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
